<?php
class Person{
    public function show(){
        echo "我是父亲";
    }
}
class Student extends Person{
    public function show($name){
        echo "我是子类".$name;
    }
}
$stu = new Student();
$stu->show("张三");
?>